Fix the utf-8 bug
Add a init function for content-aware-resize feature