write_pixel now allows to set and unset

set - tested
unset - not tested