Update DrawLines and DrawRectangle