Waiting for imageLoad before calling setup