refactoring show / hide checkmark when photo is selected