@staticmethod
def value_resolution(data):
    """Returns a tuple (width, height)"""
    width = data.get('width', None)
    height = data.get('height', None)
    if width == None and height == None:
        return None, (0, 0)
    try:
        return (width, height), (int(float(width)), int(float(height)))
    except (ValueError, TypeError):
        return (width, height), (0, 0)
