scale down the image and save it in lossy jpeg format to make the images smaller so that upload/download are faster.