Cleaned up code in canvasrenderer and optimized the code slightly.
Merge branch 'playereditor-master' of https://github.com/HGustavs/LenaSYS_2014 into playereditor-master