Fixed the gross lines problem. Turned out all it needed was to turn off imageSmoothingEnabled.