image processor and terminal