Scale images based on windows size.