The 54-year-old American took the picture during a spacewalk on the International Space Station.
He took a number of impressive pics during the EVA - Extra-Vehicular Activity.
Mastracchio is part of Expedition 39 to the International Space Station and has been on the mission since November.
During his time in space, the American astronaut has taken a series of stunning pictures and uploaded them to his Twitter feed.
The images have helped him attract over 66,000 followers on the social network.
Mastracchio may well have been inspired by Commander Chris Hadfield, who captured the world's imagination with his tweets from the ISS in 2013.
Keep tweeting Rick, keep inspiring.