def METHOD_NAME(self):
    """image writes data to an open filehandle"""
    image = self.map.draw()
    assert image.thisown == 1
    filename = 'testImageWrite.png'
    fh = open(filename, 'wb')
    image.write(fh)
    fh.close()
    if have_image:
        pyimg = Image.open(filename)
        assert pyimg.format == 'PNG'
        assert pyimg.size == (200, 200)
        assert pyimg.mode == 'RGB'