Custom TextureDataColorType, fixed missing cast on Image_fromTexture_part, more compiler warnings and some fixes for them