Updated library to use div content items as well as image content