Fixed an texture atlas problem caused by faulty dimensions.