convert min and maxBrushSize to num before sending it to PS