added support for 2d spatial stimuli