About Creating Graphic ID

I am trying understand the logic for detecting duplicated images in Libreoffice Impress.
Does anyone know how libreoffice handle this? Does anyone know how Graphic Id and Graphic cache relates to this?

Thank you in advance.