This is fixed in VaultWiki 3.0.18. When placing images in containers all by themselves, the parameter "none" should be used, and no alignment should be specified. Specifying an alignment will make VaultWiki attempt to wrap text around the image and you'll have strange margins again.