Fixed double saving.Check if image file already exists. Don't resave in this case.