add image-resizer function format-stream-by-mime-type