Make sure maxpix is set even if resolution is given explicitly