Add maxWidth and maxHeight support to .resize()