fixing image placeholders in articles and code cleanup

Don't merge just yet, gonna do some more testing. 

This PR fixes image placeholders in articles so that they actually add and save an image.