refactoring chrome drawing to be self contained