Simplified code for resize event handling, moved from Frame to Input and
added safety checks before passing to renderableObjects