css make sure image is square but not squashed code example Example: how to contain image size overflow: 'hidden', backgroundSize : 'contain',