adding and deleting images from res