fixed creating level sketch images for DF/MM elements and for SQL statements