Added a new CanvasLayer class
Few changes to CanvasLayer