check input paramter by checking the image size