remove redundant calls to closePath, cache pointImageData
update text methods
restore context on resize (fix #6, #4)