Automapper: fix wrong tile orientation and correctly handle border tiles