add new method to handle bitmap