Use fromstring() instead of fromarray() #11912

The Kymograph script should work with 8/16-bit images using PIL <= 1.1.6 (default on Centos 6). Also made the same change to Plot_Profile.