Resolved race conditions with temporary image files.