Check for avg color in parse_marker()
Limit top and bottom to regions that aren't checked earlier
Refactored transform matrix