New rewrite and improve for euscreen/marin

Rewrote the core part, made it much smaller. Added support for a
external render package (imgscalr) and added the image size reducer as
a possible filter.