Added support for spotit image rotation.