1. Magic wand all transparent area with fillmode=global and threshold=0.
2. In xor mode, rectangle all your picture. How to xor?
a) {Ctrl+MouseRight},
b) instrument properties -> button with rectangle graphic.
3. Now your effects affect only selected area.
4.
5. PROFIT.
:3