Support percentage units for inline images. Fix cursor positioning issues (started one too far to the right, added an extra linefeed at the end).