Improved image harvester performance

By increasing the scope of database transactions.