Hello Marcus,
I think I misunderstood your question. Inserting an image using the "Insert or edit image" button in the Atto editor has always been a safe way to do this. If I remember correctly, pasting in an img tag via copy and paste was problematic, but much less, if at all, with recent versions of Moodle, which is great.