i need to be able to read in my Images Streamed from my camera into memory buffers possibly putting images into a picture box instead of display them in my video-frame in Glade. any idea's or helpful snippets would be good i have attached my project as well.

Code:
 
#include <gtk/gtk.h>
#include <gst/gst.h>


int main(int argc, char *argv[])
{
    GtkBuilder      *builder; 
    GtkWidget       *window;
    GtkWidget       *videowidget;
    GtkWidget    *videobox;
  	GstElement *displaysink;     
	GstElement *pipeline;

    char pipe[] = "tcambin name=tcambin ! video/x-raw,format=BGRx, width=640, height=480, framerate=30/1 ! videoconvert ! gtksink name=videobox";

    gtk_init(&argc, &argv);
    gst_init( &argc,&argv);

    pipeline = gst_parse_launch(pipe, NULL);
	// Get the sink
	displaysink = gst_bin_get_by_name(GST_BIN(pipeline), "display");
	// From the sink get the widget.
	g_object_get (G_OBJECT (displaysink), "widget", &videowidget, NULL);
	g_object_unref(displaysink);

    builder = gtk_builder_new_from_file("glade/trolleyui2.glade");

    gtk_builder_connect_signals(builder,NULL);

	window = GTK_WIDGET(gtk_builder_get_object(builder, "window_main"));

	// Get our video box GtkBox element to draw the video in.
	videobox = GTK_WIDGET(gtk_builder_get_object(builder,"videobox"));

	// Add the widget of the gtksink to the video box
	gtk_container_add((GtkContainer*)videobox,videowidget);
	g_object_unref(videowidget);
	

	gtk_widget_realize (videowidget);
	// Important: use show_all here!
	gtk_widget_show_all(window);         

	// Start the stream
    gst_element_set_state(pipeline, GST_STATE_PLAYING);
    // 2 seconds timeout for start
    if( gst_element_get_state(pipeline, NULL, NULL, 400000000) != GST_STATE_CHANGE_SUCCESS )
    {
        gst_element_set_state(pipeline, GST_STATE_NULL);
		printf("Failed to start camera pipeline\n");
        return 1;
    }
	
    gtk_main();

	// Stop pipeline
 	gst_element_set_state (pipeline, GST_STATE_NULL);
  	gst_object_unref (pipeline);

    return 0;
}

// called when window is closed
void on_window_main_destroy()
{
    gtk_main_quit();
}
 

void read_image_button (GtkButton *button, gpointer   user_data)
{
	printf("Test\n");
}

void exit_button_clicked_cb (GtkButton *button, gpointer   user_data)
{
	gtk_main_quit();
}