One workflow that might make things simpler is to upload the images in the Images and Files section as Elliott mentioned, and then updating the raw HTML before replacing it.
The URL for those files is pretty consistent, and if you click on the image uploaded it will show you that URL.
-Erik