format
Fix inline image data handling, close #1880