External images should not be encoded

Includes a test and a fix for issue #1