Manually copy bytes from tmp file to destination file rather than using unreliable File.renameTo()
Force redraw of preview area borders to prevent artifacts on Win