Default the resolution to 0 if not given