how to get “either Image Magick or NetPBM to create square thumbnails built from the largest square that can fit inside the center of the original image?”