LoadBitmap function, some design changes

zazaza