pass dx dy to resize