Create scaled thumbnails while keeping the aspect ratio