Gravar-mail: Learning the representation of instrument images in laparoscopy videos