creating a profile image extractor