drawing/plotting actions: reorganize some stuff to avoid violating dependencies