removed hack in preview_images