Fixed bug that shows save dialogue with every image. I'm not sure what was the problem.