Make sure 'popup' and 'thumbnail' can handle fractional widths and heights. Still rounded to nearest integer, though.