Fix a small bug when using textures and adjusting brush size.