patch for bug #119 (periodic event used for image polling was causing the creation of multiple svg layers)