Fixed spriteSheet getSub method IndexOutOfBound exception