conditionals before photo object