Rgb Matrix To Image Python