[SP] Move the image and screenshot code closer to MP.