store the images locally in mongodb, rather than s3