got dump functionality working to output megaimages