[BUGFIX] thumbnail.php fix + reformat code of screenshot.php