Fixed small bug that caused screenshot to be completely black.