Added CapturePaintComponent (forget to commit in previous commit)