Fixed image previewing on gallery page.