Added toImage() function to OpenGL view

*added toImage() function to OpenGL view
*fixed some bugs
*ready for SDK 3.0.2.GA
*added imageWithComposite(blob) to TiBlob
*modified example code of taking snapshot.