added ajax to grab image for each post
functionality to swtich between image and post