pub fn validate_image_file(src: &str, root_dir: &Path) -> Result<(), String>
Validates the image source file.