Added a getPixelfromSurface function.