Add the `System::getImageSizes()` method and make sure the DB query is only executed once