minor changes
refactor check date of last photo