image upload shifted before ajax call