set resolution from xml