Test image_get_samples