Unveiling the Secrets: How Masking Strategies Shape Time Series Imputation