compress the photos