added remove image functionality