var i is not Event object, is Image. Property is not system defined, using at function renderObjects.
Mea culpa, it's bad idea use system like variable names.