Refactoring.
Debug for apng.
Merge pull request #4 from Genshin/rspec

Rspec