Merge "Remove calculation of unused local style when reducing image sizes." into main