took out multithreading, was causing issues, but made images work