changed format of nokogiri image