Update worker.py

added basic resizing, just need to add message deletion on the queue.