Added multi-resolution support and mipmapping