convert tabs to space
fixed bug in remove image