made class Bitmap to represent canvas, define types in image2d.h,
minor modification of class Matrix