updated scaling code to start at lower quality