re:
> One request: is it possible to get it with undo ability?
Unfortunately since background images are separate from regular objects there isn't the same undo infrastructure for them. So it's complicated for a script like this to support undo on them.