automatically choose highest resolution