Truly the most divine commit ever. I renamed variables better, removed some (not all) of the commented-out code, added image fit state retention, used signals to better transmit data around, and other things. I also removed the default curve checkbox because it was ugly, out of place, and unused.