I made a new library that allows you to use shapes to create costumes. I don't know how to upload xmls, so here is a script pic:
The drawing block uses the individual shape blocks (fill, polygon, line, & circle) to create a costume. points and colours are just simple data types.
Here is an example: