Fix a bug while choosing image types in dashboard.html.