Revert "Always use CANVAS mode"

This reverts commit e4bb3d7f50611e96304b79e6e9b31a866cee4a02.