rendering images

still issues rendering the first image
gui needs cleaning up