Added texture loading function and Rect<T>.