Add support for mipmaps in layouts.