Use execCommand() instead of new Image().

This allows for the image to be inserted anywhere, instead of only being able
to append it to the article.