implement resizing for badge_image and S3 storage upon file upload