changed height and width to max-height and max-width