Add a SCREENSHOTS #define

Add a defined constant SCREENSHOTS that allows code to behave differently
whenever it is in screenshot mode.