Adding resource cached check
Refactoring texture loading