added modification on sample to show image