brush engine detects painting area on canvas