Dynamic detection of plotted files to crop them