Tweaked Imgscalr to work better