Added logic for posts that have images in their midst.