Improved image manager...

clearing thumbs directory and maintaining index.html in the directory..