add image router and fix bug