BUG: Fixed a bug in GenericTransformImage