max height height & width to figure img adjusted