Made the texture format be set to GL_LUMINANCE if GL_RGB is not defined.
Added a storyboard and enabled ARC in the iOS projects.