added nr of test images as input to frame and testing