def METHOD_NAME(self, snapshot_filename, bw=True):
    img = self.image_attr.get_value()
    imgArray = array.array("b", img)
    imgStr = imgArray.tostring()
    f = open(snapshot_filename, "wb")
    f.write(imgStr)
    f.close()
    return True