upload the image to the shared memory