okay, this script needs fixing...
okay, should be able to get this script by Monday...
just add rescale bit...
lots of tinkering to get everything working for experiment. added imaxratio...