Or use epub, which lets you store the images as part of the zip archive without having to store binary files as bloated and text editor killing base64 text.