Allowing images to be looked up by their image hash if orphaned