Add option to customize auto-detach behavior

In some cases it might not be desirable for Echo to shut down itself when there are no images to be loaded in the current DOM.

I have made this customizable while retaining the current behavior as default.