improvements to images in posts

added condition to img tag that post needs to have an image
added imgpost tag, which adds margin to the bottom