photo sorting and editing improved