use shared mem for put image