Revert "Tweak styling of images when setting width and height attributes"

This reverts commit bed9a065a0c94fe10751663ae3252d68190d03ce.