added graphic scaling #937