added delete image behavior