Added image mode toggle