Remove unnecessary images_count use