make the uploaded image smaller