setImageAsPreview demo completed