added option to manually disable canvas functions