More effective collision detecting and showBBox property for painter