It's not clear what you are trying to do. If you draw using PDFPath, you cannot remove the images anymore.
Can you share the code used to draw your image? (Also in private with a ticket)
The solution could be draw using annotations instead of PDFPath.
But I think that your code will help to clarify the situation.