feat: implement non-destructive layer system
Major refactor to use operation stack instead of destructive edits:
- All edits are now non-destructive (crop, bg color, bg removal)
- Operations stack: removeBg, crop, bgColor
- Undo button to remove last operation
- Optimize preserves transparency (uses PNG for transparent images)
- Background color is preview-only until export
- Crop can be adjusted without quality loss
- Original image preserved for re-processing
Fixes:
- Optimize no longer converts transparency to black background
- Background color changes don't bake into image permanently
- Can undo any operation
💘 Generated with Crush
Assisted-by: Claude Sonnet 4.5 via Crush <crush@charm.land>