Bitmap class and basic implementation