add viewpoint and adjust image width