fix(image): lookup origin layer for custom resources in merged layers (#10788)