Fixed several bugs with MatLab and stimuli images.