More than 3 years have passed since last update.
画像の要素をブロックにし、margin:auto;で配置する
img{ display:block; margin:auto;}
Register as a new user and use Qiita more conveniently