added support for brush size