Finsh function resize/save for GD