Code to share for label I made in Moodle. Obviously the images will not reproduce but might be of some use to someone?