Issue with Product Image and Media IDs in App Bridge Resource Picker

I’m using App Bridge Resource Picker to select products and their associated images. However, the picker returns image IDs in the format gid://shopify/ProductImage/{id}, but I need to update media using the productMediaUpdate GraphQL API since the productImageUpdate API is deprecated, which requires gid://shopify/ProductMedia/{id}.

The Resource Picker does not seem to provide media IDs directly.x Has anyone else encountered this issue or found a workaround? Is there any direct way to map or convert the ProductImage ID to ProductMedia ID? Any advice would be appreciated!