When using the default Image rendering variant with Wrapped If Not Empty option for the Is link field, the <img> tag is never wrapped with an <a> tag, even when the image does have a link.
To resolve the issue, upgrade the instance to SXA 10.2.0 or higher.
Alternatively, perform the following steps: