$link=fopen("image filename","r");
$data = fread($link);
fclose($link);
I did not look the commands up, so there may be a syntax quirk here or there, but it should work roughly like that.
Also, you can generate images on the fly, but you need to recompile PHP for that.