Including images (or any type of data in the __DATA__ section.
Pretty straightforward, cat the image to the script, change $size appropriatly et voila.
cat image.pl image.jpg >image.pl
The read() stuff is included for easy updating, supposing you want several images in in __DATA__. A plain print <DATA> would've been sufficient ofcourse.