Properly reset Focus and generation in openImage