add documentation, event API, template hook and image style for gallery widget