Improve Texture Packing for Non-Square Sprite Sheets

Resize width and height alternatively while packing images into
non-square sprite sheets