modified image comparision