I'm not sure what you mean by "blocks" or what graphics library you're using, so you may wish to clarify this as well as provide any other details that can help us help you.

I will take a stab...