Set rating to 0 when inserting a picture without a rating.