Optimising image size.