added get_square_frame_from_index to gctx_methods