read image by image size