add image size info to the image size error exception