Add parameter check for penup, pendown, clear, reset