refactored extractImagesFromDiffBot