Add better error handling for PullImage