The module works properly in this situation but the node is saved when the file is uploaded. This could result in having to reload the node edit form in order to save changes to other fields that could potentially cause loss of work. There are a couple of ways to address this. One is to not call the swap_images function in this situation. I'm open to ideas.