Readjusting the amount of allocated memory. Fixes #367
Merge pull request #368 from muzzley/fix/canvasAdjustExternalMem

Readjusting the amount of allocated memory. Fixes #367