So empty rating models are created when a logged in user views an image. A default rating score of zero is recorded in this case until they rate the image.  So, you have to remove those zeros when calculating the average, otherwise they lower it.