fixed regression where empty image box appeared on gop-ed parent in incorrect locations and/or it was not supposed to show up at all. Some refinements to the path detection/removal of debug output.
Optimized tofront/back action so that it does not require canvas redraw.