fix to clear out previously loaded images