fixed bug in texture resizing + put some asserts when retrieving a frame from the cache