You can try, rather than setting the block's INVISIBLE flag, setting each of the block's faces to the NONE rendering mode... I don't know if this will give you different results, but it will look a little better in that the block/entity will now have a nice-looking static shadow. Give it a whirl and let me know how it turns out.

Logan