number of image calc