Cleaned up image analysis code.
Sleep when Solr flares.