added event firing for viewport change events and image rendered events + example