added gm and image comparison