fix crash with unknown mode FILT
TPTMP: limit brush size to 255 to prevent errors