For iStock if it's raster, it will be classified as a photo, even if painted from scratch. However, a raster illustration could be keyworded as such.
Other agencies probably have their own rules. I guess you're really asking where the line is drawn. I wonder if that differes between agencies too.