Updated to use "Requests" to initialize imaging task; Moved reboot after task creation.