Reading and printing RGB values