A computer simulation approach to the study of mental imagery