fixed pictures moved to the end of the text