Refactor ImageButton.