enable threading for asynchronous file parsing and fixed image width returning code to not dereference null on a partially loaded image