Seek to 0 on file before resizing source
Merge pull request #60 from SeiryuZ/fix-IOError

Seek to 0 on file before resizing source