Fixed error in R generation due to mislabeled image