Added the ability to control whether a sprite image animation cycles/loops or not (it cycles by default)