Added a create average image option