image: Support resizing.

Only works with imagemagick support.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>