Use map-defined dimensions.
Fixed map texture alignment bugs.