remove blank line and image