Minor fixes relating to average image

yeah what he said