Make logging an option
Remove duplicate images when preloading
Handle separate image name so that entities with # are not duplicated