Fix bugs in initial screenshot uploading and validation