Updated FrameCallback to return value to specify whether we should keep rendering