implemented optional 'loop' animation property for animated objects