- Auto-close modal 300ms after successful save
- Single 'Save Image and Mask' button (export layer mask)
- User draws mask using Photopea's built-in layer mask tools
- Simplified code structure
- Split into two buttons: 'Save Image' and 'Save Mask from Selection'
- Add isOpen flag to prevent DOM operations after modal close
- Simplify mask export: create mask directly from selection
- Better error handling and status messages