Refactored glew element buffers
Refactored TextureBuffer image loading and FFmpeg C code

Fixed memory leak