[UI] Moved shape image generators to UIImage extension.