chaned validation of image size