Max width and height on thumbnail pics are now decided by checking the pics actual sizes and choosing the biggest one.
Minor changes to windows.