Inverness had trailed following Callum Sandilands first-half opener, but a late diving header from Keith Bray rescued a point.