Converts image old_file from one format to another and saves the result to new_file. Takes the source file name as first argument and the target file name as second argument. If the target file already exists it will be overwritten unless overwrite is set to false.