improving imgSpacing