I tried using the preserveAspectRatio="none" property, but it just makes the image really wonky in shape and doesn't change how it resizes.
I also tried an HTML element, but I need to use things like opacity and rotation that it doesn't support.
Develop games in your browser. Powerful, performant & highly capable.