for i = 1:20
    image = rand([360 480]);
    imshow(image);
    ti = get(gca,'TightInset');
    set(gca,'Position',[ti(1)-.1 ti(2)-.12 1-ti(3)-ti(1)+.25 1-ti(4)-ti(2)+.25]);
    print(['stim' num2str(i) '.jpg'],'-djpeg');
end

