Common: simplified few Bitmap member functions

This also corrects Bitmap::CreateTransparent() behavior which caused problem when called with color_depth = 0.
This fixes crashing inventory window called by old InventoryScreen() script function.