add method to get preview path