A broadband achromatic metalens for focusing and imaging in the visible