Constructor by image size and image type.
image width
image height
flag used to specify the bitmap type
See Implementation
Constructor by image size and image type.