Fixes to the Photo model