Updating to create thumbnails properly in imagemagick