Handle icon width and height, and sort icons so we always use the biggest one.