script for comfortable wiener filtering
image metrics with safety margin