Fixed an async problem with the spriting

Modified the spriter to not rely on the processedImageFiles array which seems to have issues caused by async operation. Instead, the images array is used and the file name is added to it to guarantee that the image data correspond to the filename.

In essence this prevents async race problems (see #39)