change stim for karolinska database and script for grayscale