Setting the xpos and ypos for text overlay to come from a parameter