image download script and html generator in delayed job