Fixed viewport. Added flags for viewport type(Start at TopLeft or Centered).