group images by day