Use always mainScreen.scale for edited images