Fix custom format creation

Closes #12.