fixes critical image scaling