Added canvas functionality