Added optimize option to tweak the packing strategy.

Can either optimize for speed (fewer atlases) or memory (smaller
atlases). Memory is the default. Closes #48.