add xfile and ImageResourceManager