integrate adding a photo to posts