Put AJAX image upload into vars.php