compress image;list all photos in photo and sorted by day