Unable to generate gallery file.