Added example of self-adapting image size.