added exception for bad files in thum creation IOError