adding api call for subsample_images