Added a method to get a pixel color from a position