Added visible argument for image and document related classes.