Error handling

On search and image