fix bug: speciality is not saved if image attirbute is not set