Performance of deleteImageAndChildren. Upstream-commit: 377817db1b2fadf9c4294d8356aa7c75eb12e83a Component: engine