Create loadTexture.cpp

define the function of load a input picture as a texture