[#65981382] Adds preset file name as a global variable
[#65981382] Refactors file opening with open()
[#65981382] Uses sets in prepare_assets to avoid duplicates
[#65981382] Handles errors when packing images
[#65981382] Cleans code, refactors popup dialog