Added code to always center image.