Thread-safe version.
Fix image path.