implemented scanline rendering and off-sreen Images