Aberdeen striker Josh Magennis has signed a new deal that will keep him at Pittodrie for the next 12 months.