fix image load method
fix imageIndex increment
Merge pull request #3 from atton-/fixImageLoad

fix image load method