Fixed the image shifting every transition