Pixel output was in the wrong direction, needs testing but might fix graphics bug