fixed a cubemap size check bug.  fixed up some stuff too.