Making the image gallery feature work on Windows