updated width of viewer to fit sprite