grub2: check image if is supported before setup theme