Fixing issue with mousedown and freehand