Rescaling media to enable gap filling to work in defined media