fix images bug

warning: maybe cannot run correctly.