- Add image copying function
- Fix race condition in cache directory creation