printing out min,max,mean value of a picture

ok cool.thank you David
just for me to get to the bottom of this , why do I have to put ia,im,iM inside [ ] ?