fix images count