added clear to ImgImage
simple stuff for mipmap debugging.
more work on sampler state
using sampler objects for gl3.3+