Working image loader

Needs some performance improvements