storing location in photo object instead of single attributes