Add ajax file upload and markdown convertsion

How it works in loop? What if one image will be saved and another will not?