object layers and shapes are now drawn according to visible flag