replace all images;add debug view
minor modifies