[PATCH imagefactory 3/3] Move the curl progress function where it is needed.