GetPixelFormat now throws a prettier exception