fix file path for thumbnail creation