Direct copy of script used to analyze side and image preference in Group 2, untested for Group 3.