Added the object parameter to the mouse callbacks in the custom_object_widget.