A modified version of Peter Schlömer's ImageMapEdit script. The main tweaks are: code rearrangement for organization and use of modern ES6 features, and