preliminary code to calculate intensity averages
functions for calculating average and setting values
fix bug in rect_avg() and rect_set()
issue warning on boundaries mismatch
process entire image
rename plugin