decorator that prepares an image before filter applying; write some docstrings