optimized clearing of bitmap