added image code to view post