Small optimizations

Removed canvas shadows
Factored common values