removed brushSize calculation