Function to get frame source