added remove image method