Setting max image size.