display thumbnails on gallery and image widgets