open (OUT, "> plot.png"); print OUT $img->draw(); close OUT;