i dont think there's an easy way of doing this, and even so im quite sure this has nothing to do with php, all action is between the browser and the http server.
Even if there WAS, this wouldnt be interesting for graphics because they are, as said, already very much compressed..
oz