fixed the segfault bug. Now get the image to render properly