Made implementation for `HasSourceRectangle` and `CanSourceRectangle` mo...

...re generic

Closes https://github.com/PistonDevelopers/rust-graphics/issues/569