added imageamagick and imageupload functionality