add rescale_to_diagonal
tests for diagonal property
tests for rescale_diagonal
Merge pull request #442 from jabooth/rescaletodiag

add rescale_to_diagonal, diagonal property to Image