Refactoring imgloader api (THIS WILL BREAK THINGS)