img.background-contain { background-repeat: no-repeat; background-position: center; background-size: contain; }