Added code for photo post