Calculating the size of a digital image file