Hi, David.
You could try using this technique to vertically center stimuli:
http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/
If you are using the jspsych CSS file, then you may need to override some of the default values for the .jspsych-display-element class:
https://github.com/jodeleeuw/jsPsych/blob/master/css/jspsych.css#L99. You could either edit the jspsych stylesheet directly or add in overriding styles in a <style> tag in the head section of the document.
The way that I typically add a fixation point is by using a single-stim trial with a + sign as the stimulus. You can interleave fixation trials with the image trials:
var image_stimuli = ['imgA.jpg', 'imgB.jpg', 'imgC.jpg'];
var timeline = [];
var fixation_trial = {
type: 'single-stim',
stimuli: ['<p style="font-size:32px; text-align:center">+</p>'],
timing_response: 500, // how long to show the fixation for in ms
response_ends_trial: false,
choices: 'none', // no valid keys
timing_post_trial: 0, // no gap between fixation and image
is_html: true
}
for(var i=0; i<image_stimuli.length; i++){
timeline.push(fixation_trial);
timeline.push({
type: 'single-stim',
stimuli: [image_stimuli[i]],
// other parameters for your image trial
});
}
jsPsych.init({
experiment_structure: timeline
});