Add the rotate method to the photo model