added getImage function to renderTexture

Also added getBase64 function to render texture.
Useful for saving out images into HTML world