added check image size
added check image sizes