Using path instead of url to create the thumbnails