Brush size handling

Here is my piece of code how to handle the different brush sizes