Basics for writing pixels to screen