Fix problem where images wouldn't return an error