Implemeted client side of image adding and deleting.