get rid of PHP Notice:  Undefined index: height
use generic bin/convert and deprecate old bin/resize