Keep compatibility
Merge pull request #8 from saitoha/fix-segfault-with-introducing-various-pixformat

Keep compatibility