Fix the dialogue image loading code to allow the same image to be loaded for multiple sets of dialogue