set the height and width of all compound images