Check for passed image size