Stubbed imread, not working due to garbage collection