issue #182 - add support for write and draw