minor improvements to Lightmap packer