Some refactoring, created utility function for binding a single frame (graphics.bindFrameEvents); graphics.bindEvents is now an API function binding events for ALL frames