Fixed null value and improves image size registration with label