get size from image file headers
