Added 16bit texture support