Moved resetCanvas to abstract descartes handler.