Merge pull request #27 from yjwong/master

Fixed positioning bug when sprite image is changed.
Changed initialization assignment statement of value to count.