First, a connection state is detected. Next, a determination is made as to whether a connection is made via a dedicated line. If it is determined that the connection is not made via a dedicated line, image accumulation time is calculated. Then, after drive timing is changed, an imaging operation is started.