update image handling; implement imagemagick module