fix for images count