check.image.size function

Private function for checking the size of the user's image.