Everything related with the modal windows has been separated to a file. Now is the time to think if a modal mini-framework is a good idea. Also, a bug style in the save as image buttons has been fixed.