# File lib/deltacloud/drivers/rhevm/rhevm_driver.rb, line 90
  def images(credentials, opts={})
    client = new_client(credentials)
    img_arr = []
    safely do
      templates = client.templates
      if (!opts.nil? && opts[:id])
        templates = templates.select{|t| opts[:id] == t.id}
      end
      templates.each do |t|
        img_arr << convert_image(client, t)
      end
    end
    img_arr = filter_on( img_arr, :architecture, opts )
    img_arr.sort_by{|e| [e.owner_id, e.name]}
  end