I don’t think what you’re looking for is possible with a single field. I would probably do something like the following.
You would need your Yes/No field.
If the image can be different then you’d need an image field and a URL field. These would be conditional fields that only show if you’ve selected “yes” in the above field.
In the template you’d need to test the yes/no field and then display or not display the image and link base on whether it is yes or no.