added in remove image function