changed the bitmap initialization