diagram image and image size changes