Adds canvas element scaling.