More tweaks to the ResourceManager object and fixed texture loading problem with 24 bit colors.