getting image_path sorted