Fixed the graphics not clearing when using the pixel array to draw to the screen