Extract out image_dir