eliminated try/catch blocks for speed improvement in canvas renderer