Add Rect and texture loading changes