Change width, height xml setting to dimensions