Updated callback handler to add image processing timeouts