Add map trim function to crop white space around image