fixes image glitch