update sprite2js.py to auto correct image index in .sprite