Fixed bug in imagePool count, and bypassing of passed images param. Also clear previous packing data before packing.