function add custom fields to media gallery

function add custom fields to media gallery