added drawing code to block descriptor