first working version, shows images and deletes images