fixing code for centered images in posts