png scanline is top-to-bottom