Reverse x and y parameters in drawPixels