Add a init function for content-aware-resize feature