True. I didn't want to introduce a new global here, so wrapped the existing event handler in the immediately invoked function.  And kept it all where it was in an attempt to minimize the size of the change.  Its all kind of hacky anyway, and I couldn't move this code without moving the immediately invoked function above that defines the slider.  So I'll punt on this suggestion until we can refactor the image editor more thoroughly.