Adding functionality to support image annotation