Updated to work with python 2.6 and 2.7 (pack and unpack needed endian format specifiers).
Updated to look for Image modules in PIL.