I have applied that CSS and it worked. However I think this should not be required. In my opinion, it was a mistake to change the behavior for a class called aspect-image to not preserve image aspect ratio. This change affected a number of users who now have to work around it with custom CSS. Please consider reverting this change in a future Discourse release. Thank you.