Fixed bug in assigning photo status

Was looking in photo dictionary keys, not values.