FIX: excludes .svg-as-img from JS sizing (PR #12906)

GitHub