adding imagemagick and made possible image upload