remove reference externs form image and resource reader
将image和resource的接口做小修改，去除reference的继承