Added support for preview images for all resources

resolves #257