fixed main post image alignment.
added validation after pulling entity.