Media compression/image resize

Ref. issue #70.