added code to produce nice average image for ben
removed windows-only code