Using bitmap masks