Changed how parameters are sent,
so it is possible to resize by percentage and exact width