fixed: websocket middleware
updated: image processing