images_length function + test