Added debug information to log file
Make showImagestimulus work with recordingTime>0