transparent area filling and auto-closing rectangle