first working version with PixelWriter
first working version with PixelWriter