passing strings as const references to drawing functions