Now using image length returned from camera