Updates the maximum allowed size for the image.
void updateMaxSize(int maxSize) => _maxSize = maxSize;