Collision check between map and line entity.
Some refactoring, Proper bitmap size setting.