Support masking and cropping to the mask with a mask message
Fix no cropRatio bug