Looking at the photo, I'd say he's in a blue SC Militia uniform, possibly red piped, also in the photo he has a goatee, and not just a mustache. But the kicker that tells me their one and the same, is the sword, being the guard and position are identical, and the sash is identical in position, and the knot identical, (though enlarged in the painting). Plus the belt and buckle are the same.
I'd say it is indeed a bingo.