Moved resolution conversion to seperate class.