Fix conversion to uint8

Closes #44

New image_as_uint8() function that plugins can use to
convert image data to uint8.
trigger travis
Merge pull request #46 from almarklein/issue44

Fix conversion to uint8