A few helpful additions

I've added a few helpful additions.

For example you can now choose from which edge the background color should be taken from.
It also fixes a problem with `NSBitmapImageRep`.

Feel free to check it out.