Fix image loading issue when switching profile