Fixed issue with paint not being properly initialized
Added common enums and interface listener