Schedule agent to update pictures on RTF

I have an agent which uses the UI classes to import photographs of staff members onto notes documents. The agent currently has to run in the front-end client and therefore holds up a machine for up to 6 hours. Is there a way to perform this task in the back-end? i.e. A method that does not use UI classes. We would like to schedule the agent to run outside office hours.

Subject: Schedule agent to update pictures on RTF

What is it that makes you want to use the UI classes? Is there something that you couldn’t find a way to do on the back end?