An other segfault in image module.
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3687
Reported by Anders Johansson anders@roxen.com
This code generates a segfault, probably due to the rotate operation when the layer size is zero.