image stim and other fixes