adding send image function