I've just sent you the code for a function returning a region of a rounded corner and some code to put in your resize event for using them...