auto detect device and choose suitable images.