made waiting for image interruptable