fix script
support and fixes for mip mapping