Rotate and scale inline images with Content-ID: Bug #738333

Inline images with a Content-ID were being processed by the inline
image replacer but post-processing code would then drop the IMG tag
and replace it with the full-sized unrotated image data URI.  This
corrects that problem by noting when an image with a Content-ID has
been replaced.