Fixed adjusting image count.