image magick aded for image resizing