Added crop option to enfore maxWidth & maxHeight constraints.