Mipmap support for compressed textures

Initial commit for mipmapping support on ETC1 textures.