Initial commit of image load rewriting.
Fix compressed image check here.
Fix incorrect glBindTexture target.
Complete rewrite of image loading.
Don't attempt to upload compressed images to uncompressed textures.
Properly calculate needsDepthSort(), implement solid textures.