A quick Python script, using the Python Image Library.