fixed painting bugs

- fixed clip bug (last area clip was used for elements)
- fixed alpha bug (alpha was not set, so everything was transparent)