add: image ratio support for squared grid
chg: version; mv: image ratio to function