Less code duplication in dashboard imgs