wrote function to copy reusable images to opencl