Simplify image alignment
Simplify image alignment

Refactor to simplify the code to align the image's tiles.

martincostello/adventofcode,martincostello/adventofcode,martincostello/adventofcode,martincostello/adventofcode