adding image extraction script