added photo method to post