Fix mask background on rotation