update database product attributes on image upload