Added check for empty images