Added handling of defs, gradient, drop shadow, fillPattern etc.