--- a/lib/Bio/Graphics/Browser2/CachedTrack.pm
+++ b/lib/Bio/Graphics/Browser2/CachedTrack.pm
@@ -151,7 +151,7 @@
 sub put_data {
     my $self              = shift;
     my ($gd,$map,$titles) = @_;
-    $self->{data}{gd}     = $gd->can('gd2') ? $gd->gd2 : $gd;
+    $self->{data}{gd}     = $gd->png;
     $self->{data}{map}    = $map;
     $self->{data}{titles} = $titles;
     my $datafile          = $self->datafile;
@@ -191,7 +191,7 @@
     my $gd = (ref($data->{gd}) 
 	    && ref($data->{gd})=~/^GD/)
 	? $data->{gd}
-        : GD::Image->newFromGd2Data($data->{gd});
+        : GD::Image->newFromPngData($data->{gd});
     return $gd;
 }
 
--- a/lib/Bio/Graphics/Browser2/Render/Slave.pm
+++ b/lib/Bio/Graphics/Browser2/Render/Slave.pm
@@ -488,7 +488,7 @@
 			    titles    => $titles,
 			    width     => $width,
 			    height    => $height,
-			    imagedata => eval{$imagedata->gd2}};
+			    imagedata => eval{$imagedata->png}};
     }
     my $content = nfreeze \%results;
     return $content;
