Added functionality to use any custom views for content

Instead of being restricted to only images.