fix default tool logic in gr.ImageEditor
fix default tool logic in gr.ImageEditor: a task in repo2rlenv-v083-pr diff (Harbor dataset). Title: fix default tool logic in gr.ImageEditor
The task
**Title:** fix default tool logic in gr.ImageEditor
Part of AdithyaSK/repo2rlenv-v083-pr_diff.