scale img down and keep aspect ratio.