added size restrictions on the image