don't set class on img that don't exist