MacBook Pro 2012 Retina shuts down when I'm doing graphic work
Hi; I have a new-to-me MacBook Pro 2012 Retina from my IT manager friend; he installed a new battery and reinstalled all new software. When I use the MacBook for browsing, document, or spreadsheets, it works perfectly well. When I do any graphics work, like working on my websites or editing photos in Picmonkey, the laptop will spontaneously shut down, and sometimes restart. This happens in both Firefox and Chrome. When it restarts, it does so to a black screen, but the keyboard lights up. If I press the Enter key, I hear a "boop", but the screen remains dark. I've tried resetting the PRAM and the SMC, which works for a while, but the shutting down still happens. Any ideas as to what I can do to fix this graphics problem?