When you write a post in the advanced format there's a paperclip in the tools above the box where you compose the post. If you click the paperclip you get an attachment manager where you can add images. When you want to place them in the post, click the paperclip again and select the name of the attachment you want to place in the location of the cursor.