When paste an image from clipboard you will see something like this:

You shouldn't change the syntax when you paste the image in markdown. Instead, you should add div before and after that.
The best solution that I found in this link is that:
<div style="max-width:500px;margin-right: auto; margin-right: 0;">

</div>
This works fine.