Mmm, your right, Mine is just one possible answer, with regards to the diagonal lengths, and it certainly does not need to be a rectangle.
Plus I failed to account for the fact that all side lengths are integer.
So in short, mine is wrong.
Did you draw that pic or was it given to you?