Only returning thumbnail if there is one; raising exception otherwise.