resolving images_count error