The warden or superintendent of any penal or reformatory institution in this state, the attorney general or his authorized assistants or agents, the sheriff of any county in this state, or the chief of police of any municipality in the state is hereby authorized and empowered, when in his judgment such proceeding shall be necessary for the purpose of identifying any person accused or convicted of crime, or for the purpose of preventing the escape or of facilitating the recapture of any such person, to cause to be taken or made and preserved such photographs, impressions, measurements, descriptions, and records as may in the judgment of any of said officials be deemed necessary.
SDCL 23-5-6