We need to make sure that when we snap the fillRect, we also adjust the scaling of the gradient so it exactly fills the snapped tileRect.