Commented out printing of debug information.
Fixed a trailing slash problem. Added default image directory.