scrshotThread was also unused so that is removed as well. Also added the algorithm header, since we use min and max here.