add the implementation for bitmap