[mms_attachment_image] Fixed newly introduced memory leak