Did you mean that I should create a web-based image viewer first and then rotate images within it? I think it is worth to have a try. But I wonder whether you have some good recommedation for me? I am a green hand on this problem. Any suggestion will be appreciated. Thanks in advance.