added update_with_media support