fixed path of regenerated thumbnails.  Added exception handling.