implemented delete image