added option for destination filename to prevent overwriting original