Handle image names containing spaces