Implement URL browser in image and gallery widgets. Fixes #580