fix images and maths