Prevent the same image from being loaded multiple times