Preliminary version of image resizing.

Images get resized if the message doesn't fit into the limit (300 kB
by default). Requires ImageMagick. Works on images taken by camera.

Dies and brings the whole system down on large images. We should be
able to resize images (at least JPEGs) without loading the whole thing
into the memory...