allow users to change the visibility of layers in the image editor (#10981)
* allow users to change the visibility of layers in the image editor
* add changeset
* fix types
* fix bugs
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>