modified the usage of image types in rendering. simplified drawing border.
the simplified border turned out to buggy. doesnt behave properly when background is translucent.
implemented inplace editors for border and background.