fix lbp for different mask size