validate uploaded image size