fix images bug