Some refactors in pixel collision