Update image size.