Fixed a bug which prevented the drawing of layers if an image layer's 'visible' property was false