added useful methods for set image from UIImage and setBackgroundWidth