Hapi doesn't like binary strings
File type for jpg fixed