Fixed bitmap memory leak