add show image and transfer image function