Add parameterize method to photo model