solve the imagefactory base path problem