Hello,
Your code is replacing a placeholder by a WordFragment (this is the image) removing the whole content of the paragraph as you are setting replacement type as 'block'.
We recommend you to use inline replacement or use the method replacePlaceholderImage to replace the image.
Regards.