Improved save function, now one call is made to save multiple annotations