Look a player up by username or UUID, turn their skin on the real player model, and download the texture as a PNG. Classic and slim arms are both drawn the way the game draws them.