displacement optimisation

If a displacement map is completely flat, it will not be added to the
brush. The brush size is changed to match the height values of the
displacement map.