improve bitmap loading