unified pattern matching on image files
fix the way how image url is build for PhotoFile
build link from PhotoSharing to PhotoFile