added TFile support + img preview