use wand library to resize image