Moved working image processing out of SQS