Apparatus and method for image recording