some refactoring, check bitmap is not recycled