Implemented texture with new resource system.