fix #3736: wrong image when opening a spoiler with Photos

The Photos application seems to do some image caching. For most images,
we already have an accessible on-disk copy that can be used instead of a
unique temporary name.