Fix #27: Handling non-square maps.