fixed creating thumbnail from path