Refactored image code in partials, image is at the center of the post