Backup image if not provided

Hey,

in my app a User may/may not create an image for an object.
So in case the image is created it’s easy.
But in case User didn’t create the image I’d like to display a static backup image.

EDIT:
I also need to handle error. What if the image url is not correct? I’d like to display backup image. I also need to show spinner/loader while the img is being loaded.

How can I achieve that?

Use conditionals if the image doesn’t exists change the image source to the new image.
something like this
image

Or upload a default image in the data type itself.

image

Thanks. That’s what I’ve been looking for but not quite.
I also need to handle error. What if the image url is not correct? I’d like to display backup image. I also need to show spinner/loader while the img is being loaded.

Could you help me with that?