Update MTPDF.m

Added extra defensive memory management to draw methods.