script now adds sample name to image