Added functionality to use any custom views for content, instead of the restriction to images