My share extension image script works beautifully with selections from the the Files app, but with the Photos app, I have the problem that each image appears TWICE. For the following screenshot I had selected only ONE image, but the script gets TWO (identical) images delivered viaappex.get_images(image_type='ui'):

How can I avoid (or detect) this? I though this might happen because of HDR and normal image, however both images in the list returned from appex.get_images are of the same type _ui.Image.
