This also adds right button mouse click to imagebutton function, and resize functionality.
