Save an image to a ByteString (saveBS), improved error handling and refactoring
Type-safe image types