def save_images(urls, file_path)
      urls.each_with_index do |url, i|
        open("#{@topic.gsub(' ', '-')}_#{i}.jpg", 'wb') do |file|
          file << open(url).read
        end
      end
    end
def save_images(urls, file_path)
      urls.each_with_index do |url, i|
        open("#{@topic.gsub(' ', '-')}_#{i}.jpg", 'wb') do |file|
          file << open(url).read
        end
      end
    end
takes an array of links