Add $boxDimension to use different dimension from image