removing pdf and jpg image files