working on threading image loading