Added seqence to share images between kernels