implement 2d bitmap