fix synchronous image loader