added photos and paperclip classes