Hello,
You may simply copy xstore/framework/theme-functions.php from your staging and upload it on your production (of course if you have the same theme versions/core versions)
Otherwise, you may open xstore/framework/theme-functions.php and find next lines -> https://prnt.sc/rVElJ8F98qu7
and add the highlighted in the middle square
Position of placement -> https://prnt.sc/eOYzK-IvQizg
Code that was added:
if ( !$image ) {
$image = wp_get_attachment_image( $attach_id, $size, false, array('class' => $class) );
}
Regards