remove jpg and unnecessary log in ghost