public void writeImage()
	{
		ID3v2 tag = f.getId3v2Tag();
		if (hasImage == 1)
		{
			String tempName = path + "_temp_backup_ImgToID3";
			try
			{	
				//System.out.println("saving to " + path);
				tag.setAlbumImage(img.getImageData(), img.getMimetype());		//save new file
				f.save(path + "_tagged_ImgToID3");
	
	
	
				if(!renameFile(path, tempName))				//move old file to temp name				
				{ System.out.println("oldfile Rename failed!: " + path); 
				}
	
				if(!renameFile(path + "_tagged_ImgToID3", path))				//move new file to orig filename				
				{ System.out.println("newfile Rename failed!: " + path + "_tagged_ImgToID3"); }
	
				File backup = new File(tempName);
	      		if(backup.delete())
				{
					//System.out.println("tmp Deleted");
					ChangesFile.writeLine("Success: " + path);
				}else {
	         		System.out.println("tmpDeletionError: " + tempName);
	      		}	
			}catch(Throwable e)
			{	System.out.println("Exception: " + e.getMessage());	//couldn't save new mp3
				ChangesFile.writeLine("Failed:  " + path + " ERROR: " + e.getMessage());
			}finally
			{
				File backup = new File(tempName);
				File orig = new File(path);
				backup.renameTo(orig);
				File written = new File(path + "_tagged_ImgToID3");
				written.delete();

			}
		}else
		{
			//System.out.println("Skipping: " + path);
			ChangesFile.writeLine("Skipped: " + path);
		}
	}