update build scripts
update  painter
generate mipmaps support