Merge "Remove minLayer and maxLayer from screenshot code."