implement image rewriter and create action