Fix mask image scaling after dfd97aa0