ound this in Where to edit Custom Content fields to optional if there is no plug in?

Maybe you should copy plugin from theme folder to plugin directory and activate it.

EDIT: I’m sorry. I misunderstand you.

I want to have that field optional

It’s needed to change theme php code. The task will be easier if you publish this code.

I guess there is registered save_post hook in the theme code. And this hook checks if image is present. But I can’t give fine answer because I don’t know what is really written in your theme code.