Remove multiple label images

Dear Team,
I am facing an issue in the intermdoc after extracting the image.
1)if any document contains label images like a) b) c) d) in the same line all the images getting extracted in the intermdoc.
2) if any document contains label images like a) & b) images in one line and c) & d) images in other line then c) & d) images alone removing in the intermdoc document.
a) & b) images are not get removed in the imtermdoc.
i have attached you a sample document of input and output kindly find it and please provide some solution.
Sample input:sam.zip (216.2 KB)
Sample Output:sam_Interim.zip (10.0 KB)

@jan.kathir

Unfortunately, your question is not clear enough therefore we request you to please elaborate your inquiry further. Also, please share your input, output and expected output documents and your code example for testing. This will help us to understand your scenario, and we will be in a better position to address your concerns accordingly.