Sanitize images and generate random filenames for public bucket