seems to partially work. seems like left part of image is being written with incorrect data. not sure...