Allow to take line end just after an image or image_p