Fixed texture atlas creation