Image editor sample using capture API