Fixed many bitmap drawing issues