Fix for read-image and write-image
Merge pull request #1 from sjkirby/master

Fix for read-image and write-image