DRY; use one place to store allowed image extensions.