add hidden option support for draw elements