read image (when in [#in]) write image (when in [#out])