Implemented MipMap generation - from HTMLImageElement / BitmapData. Still need to add hooks to upload imageData to texture...