support resize button for jpg type.
fix #17. add route / to viewer.