fixed the animation putPixel