Adjusted viewport method. Added toArray alias for asArray