fix image cache dir
ADd SERVICE_TIMEOUT
upgrade script work