WOW can't believe i forgot to create pointer to image and was outputting garbage data...