Added support for advanced mode; issue #8; and made loading of image faster
Drastically improved the location of debugimages; issue #9