Add Mutex to setImagePath/getImagePath/...