Added canvas and painter classes to canvas module