Use path instead of split/slice/join
Add dir to thumbnail path