updated img comparison