don't compress the photo immediately so as to avoid overflowing the server