Convert images back to base64 before reinserting them.
Merge pull request #969 from brianloveswords/968-corrupt-images

Convert images back to base64 before reinserting them.