the correct syntax for checking if a file field has a value is:
isset($_FILES['image1']) && $_FILES['image1'] != ""
change the trigger:
if (isset($_POST["Insert_x"]) && isset($_POST['image1'])) // Trigger
to:
if (isset($_POST["Insert_x"]) && (isset($_FILES['image1']) && $_FILES['image1'] != "") // Trigger