limit brush size to prevent errors