commit draw method