One idea would be to reference the images through a script that reads in the file and streams it to the apge, saving the file size information to be added into your total. So an example url would be <img src="filesizereader.php?filetoget=blah.gif">
amc