made image dimension checking