This is because `img.width.toString()` returns the `<img>` element dimension, not the real image dimension (stored in the `width` attribute). closes https://github.com/CaiJimmy/hugo-theme-stack/issues/934
This is because `img.width.toString()` returns the `<img>` element dimension, not the real image dimension (stored in the `width` attribute). closes https://github.com/CaiJimmy/hugo-theme-stack/issues/934