HOTFIX - implement timeout for image processing