Fix getScanline, add printv()