fix for bug in image count