Improved CreateBitmap

Also changed some function interaction